package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CheckgroupDao {

    Page<CheckGroup> pageQuery(String queryString);

    void save(CheckGroup checkGroup);

    @Delete("delete from t_checkgroup where id = #{id}")
    void delete(Integer id);

    @Select("select * from t_checkgroup where id = #{id}")
    CheckGroup findById(Integer id);

    void update(CheckGroup checkGroup);

    @Select("select * from t_checkgroup")
    List<CheckGroup> findAll();
}
